<<<<<<< HEAD
function kaishi()
{
    var content_manual_left_h =document.getElementById("id_content_manual_left").offsetHeight;
    $("#joystick").height(content_manual_left_h);

=======
function fullScreen()
{

    var content_manual_left_h =document.getElementById("id_content_manual_left").offsetHeight;
    $("#joystick").height(content_manual_left_h);



>>>>>>> dev
    var docElm = document.documentElement;
    //W3C 
    if (docElm.requestFullscreen) {
        docElm.requestFullscreen();
    }
        //FireFox 
    else if (docElm.mozRequestFullScreen) {
        docElm.mozRequestFullScreen();
    }
        //Chrome等 
    else if (docElm.webkitRequestFullScreen) {
        docElm.webkitRequestFullScreen();
    }
        //IE11 
<<<<<<< HEAD
    else if (elem.msRequestFullscreen) {
        elem.msRequestFullscreen();
    }
}

function guanbi() {
=======
    else if (docElm.msRequestFullscreen) {
        docElm.msRequestFullscreen();
    }
   
}

function unfullScreen() {
>>>>>>> dev
    if (document.exitFullscreen) {
        document.exitFullscreen();
    }
    else if (document.mozCancelFullScreen) {
        document.mozCancelFullScreen();
    }
    else if (document.webkitCancelFullScreen) {
        document.webkitCancelFullScreen();
    }
    else if (document.msExitFullscreen) {
        document.msExitFullscreen();
    }
<<<<<<< HEAD
    //var content_manual_left_h =document.getElementById("id_content_manual_left").offsetHeight;
=======
>>>>>>> dev

   // $("#joystick").height(200);

}


//检测浏览器
function getHiddenProp()
{
    var prefixes = ['webkit','moz','ms','o'];

    // if 'hidden' is natively supported just return it
    if ('hidden' in document) return 'hidden';

    // otherwise loop over all the known prefixes until we find one
    for (var i = 0; i < prefixes.length; i++)
    {
        if ((prefixes[i] + 'Hidden') in document) 
            return prefixes[i] + 'Hidden';
    }

    // otherwise it's not supported
    return null;
}
//检测当前窗口是不是显示状态
function getVisibilityState() 
{
    var prefixes = ['webkit', 'moz', 'ms', 'o'];
    if ('visibilityState' in document) return 'visibilityState';
    for (var i = 0; i < prefixes.length; i++) 
    {
        if ((prefixes[i] + 'VisibilityState') in document)
            return prefixes[i] + 'VisibilityState';
    }
    // otherwise it's not supported
    return null;
}